<?php $this->_extends('../_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
<table class="list_table" width="100%">
<tr>
	<th>店铺</th>
	<th>令牌</th>
	<th>过期时间</th>
	<th>操作</th>
</tr>
<?foreach ($shop as $s):?>
<tr>
	<td><?=$s['name']?></td>
	<td><?=$s['token'] ? substr($s['token'], 0, 10) : ''?></td>
	<td><?=$s['expire_time']?></td>
	<td>
		<?if (strtotime($s['expire_time']) - 7 * 86400 > CURRENT_TIMESTAMP):?>
		<font color="#aaaaaa">申请</font>
		<?else:?>
		<a href="<?=url('Setting::Basic/EbayTokenCreate', array('shop_id' => $s['id']))?>">申请</a>
		<?endif;?>
	</td>
</tr>
<?endforeach;?>
</table>
<?php $this->_endblock();?>